package cn.eaay.stock.mapper;

import cn.eaay.stock.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

/**
 * @author yangjiachang
 * @description 针对表【sys_user(用户表)】的数据库操作Mapper
 * @createDate 2022-02-12 16:02:46
 * @Entity cn.eaay.stock.pojo.SysUser
 */
public interface SysUserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    /**
     * 根据用户名查询用户信息
     *
     * @param username 用户名
     * @return {@link SysUser}
     */
    SysUser findByUserName(@Param("username") String username);

}
